import request from '@/utils/request'

// 查询测试工作流列表
export function listTestProcess(query) {
  return request({
    url: '/biz/testProcess/list',
    method: 'get',
    params: query
  })
}

// 查询测试工作流详细
export function getTestProcess(id) {
  return request({
    url: '/biz/testProcess/' + id,
    method: 'get'
  })
}


// 提交审核
export function submit4Review(id) {
  return request({
    url: '/biz/testProcess/submit4Review/' + id,
    method: 'get'
  })
}

// 新增测试工作流
export function addTestProcess(data) {
  return request({
    url: '/biz/testProcess',
    method: 'post',
    data: data
  })
}

// 修改测试工作流
export function updateTestProcess(data) {
  return request({
    url: '/biz/testProcess',
    method: 'put',
    data: data
  })
}

// 删除测试工作流
export function delTestProcess(id) {
  return request({
    url: '/biz/testProcess/' + id,
    method: 'delete'
  })
}
